package com.tecode.user.service;

import com.tecode.user.mapper.UserMapper;
import com.tecode.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User queryById(int id) {
        userMapper.selectByPrimaryKey(id);
       return this.userMapper.getUserByPrimary(id);
    }
}